package com.macro.mall.service;

import com.macro.mall.common.api.CommonPage;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.dto.OmsOrderReturnApplyResult;
import com.macro.mall.dto.OmsReturnApplyQueryParam;
import com.macro.mall.model.OmsOrderReturnApply;
import com.macro.mall.model.UmsAdmin;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 退货申请管理Service
 */
public interface OmsOrderReturnApplyService {
    /**
     * 分页查询申请
     */
    CommonPage<OmsOrderReturnApply> list(UmsAdmin admin, OmsReturnApplyQueryParam queryParam, Integer pageSize, Integer pageNum);

    /**
     * 批量删除申请
     */
    int delete(List<Long> ids);

    /**
     * 修改申请状态
     */
    @Transactional
    CommonResult confirm(String currentUserName,Long id);

    /**
     * 获取指定申请详情
     */
    OmsOrderReturnApplyResult getItem(Long id);

    /**
     *卖家同意售后订单
     * @author zhouboyu
     * @Date 2020年9月23日
     * @param returnApply
     * @return
     */
    @Transactional
    CommonResult agree(OmsOrderReturnApply returnApply);
}
